#ifndef _CONTENTS_INCLUDED_
#define _CONTENTS_INCLUDED_

#include "qt-proxy.hh"

class Ui_Contents;
class FS;

class Contents:public QWidget
{
	Q_OBJECT
	
	QTextDocument td;
	Ui_Contents *ui;
	FS *fs;
	QString codeset;
	QString curFile;

public:
	Contents(QWidget *parent = 0);
	void setFS(FS *fs){this->fs = fs;};

public slots:
	void setFile(const QModelIndex &index);

protected:
	void contextMenuEvent ( QContextMenuEvent * event );
	void reloadText();
};

#endif //_CONTENTS_INCLUDED_
